package com.xuecheng.content;


import com.spring4all.swagger.EnableSwagger2Doc;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.cloud.openfeign.EnableFeignClients;

@EnableSwagger2Doc
@SpringBootApplication(scanBasePackages = {"com.xuecheng.content","com.xuecheng.common.exception"})	//扫描异常类注解和content中的注解
@RefreshScope	//nacos配置热刷新
@EnableDiscoveryClient   //开启nacos的客户端注册中心
@EnableFeignClients("com.xuecheng.content.agent")	//开启feign的支持
public class ContentApplication {

	public static void main(String[] args) {
		SpringApplication.run(ContentApplication.class, args);
	}
}